# 所有查重定义实体类
from pydantic import BaseModel
from typing import List


# 文件详情
class FileVo(BaseModel):
    # 文件可下载的url
    file_url: str=None
    file_base64:str=None
    token: str=None
    use_doc_unwarping: str=None


# 文件详情
class FileObj(BaseModel):
    param: FileVo
# 文件详情

# class FileList(BaseModel):


# 文件详情
class FileBase(BaseModel):
    # 文件base64
    file_base64: str
    query_expr: str = None
    token: str
    file_limit: int
    file_similarity: float
    ex_list: List[str]
    is_opencv_check: int
    query_expr: str
    thread_num:int
    server: str = None
    query_server:str = None

# 文件详情
class ServerVo(BaseModel):
    servers: str = None

